import request from '@/utils/request'

// 获取路由
export const getRouters = (query) => {
  return request({
    url: '/getRouters',
    method: 'get',
    params: query
  })
}
// http://183.214.26.131:8006/getRoutersMenu?subsystemId=1
// 获取一级菜单接口
export const getPrimaryMenu = (query) => {
  return request({
    url: '/getRoutersMenu',
    method: 'get',
    params: query
  })
}
// http://183.214.26.131:8006/getRoutersUserMenu?subsystemId=1&menuId=1099
// 获取首页左侧菜单接口
export const getHomeSidebarMenu = (query) => {
  return request({
    url: '/getRoutersUserMenu',
    method: 'get',
    params: query
  })
}
